package com.wheesper.www.WheesperServer.Services;
import com.wheesper.www.WheesperServer.Net.Session.IOSession;

import ProtocolBuffer.ProtoMessageOuterClass.*;

public class ModifyPasswordServices {
	public static void handle(IOSession session,PasswordModifyRequest request) {
		String email = request.getMailAddress();
		String newPassword = request.getPassword();
		String captcha = request.getCaptcha();
		ModifyPasswordController.Instance().modifying(session, email, newPassword, captcha);
	}
	
	public static void handle(IOSession session,PasswordModifyCaptchaRequest request) {
		String email = request.getMailAddress();
		ModifyPasswordController.Instance().modifyApply(session, email);
	}
}
